% File: testbench_sc_fde_mfb.m
% ----------------------------
% This script draw mfb bound for the specific channel

clear all
close all

% dbstop in mimochan_filter at 18

chan_profile    = 4;
mu_profile      = 0;
sig_pac_profile = 0;
sim_profile     = 2;
scrambl_profile = 0;
intlv_profile   = 0;
sc_fde_preprocess

rx_profile = 0;
sc_fde_base

sc_fde_postprocess

figure();
semilogy(SNR,ser_mfb,'r-');
xlabel('SNR (dB)'); ylabel('SER');
ylim([5e-6 1]);
grid on
legend('MFB');
title('QPSK-SC-FDE over Rayleigh Fading Channel');

figure();
semilogy(SNR,ser_mfb/2,'r-');
xlabel('SNR (dB)'); ylabel('BER');
ylim([5e-6 1]);
grid on
legend('MFB');
title('QPSK-SC-FDE over Rayleigh Fading Channel');

% End of script